home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / tess / tess-1.0 / ImageCompositor.h < prev    next >
Encoding:
Text File  |  1992-06-30  |  945 b   |  43 lines

  1. /*
  2.  *    ImageCompositor -- Randy Nelson
  3.  *    An general class that composites an image at the current mouse location
  4.  *
  5.  *    You may freely copy, distribute and reuse the code in this example.
  6.  *    NeXT disclaims any warranty of any kind, expressed or implied, as to
  7.  *    its fitness for any particular use.
  8.  */
  9.  
  10. #import "MouseTracker.h"
  11.  
  12. @interface ImageCompositor: MouseTracker
  13. {
  14.     id        brushDisplay;
  15.     id        brushColor;
  16.     id        brushSize;
  17.     id        brushShape;
  18.     id        infoPanel;
  19.     id        helpPanel;
  20.     NXColor        currentBrushColor;
  21.     NXSize        currentBrushSize,
  22.             windowMax,
  23.             windowMin;
  24.     NXPoint     currentBrushCenter;
  25.     int         currentBrushShape;
  26.     id         brushImage,
  27.             screenImage,
  28.             undoImage;
  29. }
  30.  
  31. - selfInit:sender;
  32. - mouseDownAction:(NXPoint *)currentLocation;
  33. - mouseDraggedAction:(NXPoint *)currentLocation;
  34. - mouseUpAction:(NXPoint *)currentLocation;
  35. - drawBrushImage:sender;
  36. - erase:sender;
  37. - undo:sender;
  38. - helpPanel:sender;
  39. - infoPanel:sender;
  40. - colorPanel:sender;
  41.  
  42. @end
  43.